package com.hlz.lib.effectivejava.chapter2;

/**
 * JavaBean模式
 *
 * @author Hongliang Zhu
 * @create 2023-08-20 14:01
 */
public class NutritionFacts2 {
    private int servingSize;

    private int servings;

    private int calories;
    private int fat;
    private int sodium;
    private int carbohydrate;


    public int getServingSize() {
        return servingSize;
    }

    public int getServings() {
        return servings;
    }

    public int getCalories() {
        return calories;
    }

    public void setCalories(int calories) {
        this.calories = calories;
    }

    public int getFat() {
        return fat;
    }

    public void setFat(int fat) {
        this.fat = fat;
    }

    public int getSodium() {
        return sodium;
    }

    public void setSodium(int sodium) {
        this.sodium = sodium;
    }

    public int getCarbohydrate() {
        return carbohydrate;
    }

    public void setCarbohydrate(int carbohydrate) {
        this.carbohydrate = carbohydrate;
    }
}
